package com.imooc.coupon.constant;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * 优惠券信息通道定义类
 */
public interface CouponChannel {

    String COUPON_MESSAGE_INPUT = "couponMessageInput";
    String COUPON_MESSAGE_OUTPUT = "couponMessageOutput";

    @Input(COUPON_MESSAGE_INPUT)
    SubscribableChannel couponMessageInput();

    @Output(COUPON_MESSAGE_OUTPUT)
    MessageChannel couponMessageOutput();
}
